import assessCheckApi from './api'
import { axios } from '@/utils/request'
export function initHcyNdkp(params){
    return axios({
      url: assessCheckApi.initHcyNdkp,
      method:'get' ,
      params:{...params},
      url_1:'outside',
    })
  }

// 查询流程详情
export function queryJobByJobId(params){
    return axios({
      url: assessCheckApi.queryJobByJobId,
      method:'get' ,
      params:{...params},
      url_1:'outside',
    })
  }
  // 我的已办流程列表
export function flowMyYbJobPage(params){
  return axios({
    url: assessCheckApi.flowMyYbJobPage,
    method:'get' ,
    params:{...params},
    url_1:'outside',
  })
}

//删除办理意见
export function deleteBatchIdeaServe(params){
    return axios({
      url: assessCheckApi.deleteBatchIdea,
      method:'delete' ,
      params:{...params},
      url_1:'outside'
    })
  }

//办理意见
export function handlingOpinionsListServe(params){
    return axios({
      url: assessCheckApi.handlingOpinionsList,
      method:'get' ,
      params:{...params},
      url_1:'outside'
    })
  }
  //添加意见
  export function addBatchIdeaServe(params){
    return axios({
      url: assessCheckApi.addBatchIdea,
      method:'post' ,
      data:{...params},
      url_1:'outside'
    })
  }

  //保存
  export function saveFlow(data){
    return axios({
      url: assessCheckApi.saveFlow,
      method:'post' ,
      data:{...data},
      url_1:'outside'
    })
  }
  //提交
  export function submitFlow(data){
    return axios({
      url: assessCheckApi.submitFlow,
      method:'post' ,
      data:{...data},
      url_1:'outside'
    })
  }

  //退回

  export function returnUpperFlowJob(data){
    return axios({
      url: assessCheckApi.returnUpperFlowJob,
      method:'post' ,
      data:{...data},
      url_1:'outside'
    })
  }

  //批量提交

  export function batchSubmitFlow(data){
    return axios({
      url: assessCheckApi.batchSubmitFlow,
      method:'post' ,
      data:{...data},
      url_1:'outside'
    })
  }

  //批量删除

  export function deleteNdkpFlowJob(data){
    return axios({
      url: assessCheckApi.deleteNdkpFlowJob,
      method:'delete' ,
      params:{...data},
      url_1:'outside'
    })
  }

  //导出年度考评基本信息数据-表格excel
export function exportNdkpData(params){
  return axios({
    url: assessCheckApi.exportNdkpData,
    method:'get' ,
    params:{...params},
    url_1:'outside',
    responseType: 'arraybuffer'
  })
}

  //批量提交并设置考核结果
  export function batchSubmitNdkp(data){
    return axios({
      url: assessCheckApi.batchSubmitNdkp,
      method:'post' ,
      data:{...data},
      url_1:'outside'
    })
  }
